package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-08-18  15:11
 * @Description:档案的附件 传递
 */
public class InformationAccessoryUpLoad implements Parcelable {

//    "filePath": "http://地址", //档案附件路径
//            "fileName": "文件名称",
//    "fileSize": 1023

    //上传用到 filePath
    private String filePath;
    //上传不用 fileName
    private String fileName;
    //上传不用 fileSize
    private String fileSize;

    //添加一个合同类型
    private int fileType;
    //档案附件的类型
    private String fileTypeName;

    //上传不用 urlPrefix
    private String urlPrefix;
    //上传不用 url
    private String url;


    public String getFileTypeName() {
        return fileTypeName;
    }

    public void setFileTypeName(String fileTypeName) {
        this.fileTypeName = fileTypeName;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(int fileType) {
        this.fileType = fileType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrlPrefix() {
        return urlPrefix;
    }

    public void setUrlPrefix(String urlPrefix) {
        this.urlPrefix = urlPrefix;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.filePath);
        dest.writeString(this.fileName);
        dest.writeString(this.fileSize);
        dest.writeInt(this.fileType);
        dest.writeString(this.fileTypeName);
        dest.writeString(this.urlPrefix);
        dest.writeString(this.url);
    }

    public void readFromParcel(Parcel source) {
        this.filePath = source.readString();
        this.fileName = source.readString();
        this.fileSize = source.readString();
        this.fileType = source.readInt();
        this.fileTypeName = source.readString();
        this.urlPrefix = source.readString();
        this.url = source.readString();
    }

    public InformationAccessoryUpLoad() {
    }

    protected InformationAccessoryUpLoad(Parcel in) {
        this.filePath = in.readString();
        this.fileName = in.readString();
        this.fileSize = in.readString();
        this.fileType = in.readInt();
        this.fileTypeName = in.readString();
        this.urlPrefix = in.readString();
        this.url = in.readString();
    }

    public static final Creator<InformationAccessoryUpLoad> CREATOR = new Creator<InformationAccessoryUpLoad>() {
        @Override
        public InformationAccessoryUpLoad createFromParcel(Parcel source) {
            return new InformationAccessoryUpLoad(source);
        }

        @Override
        public InformationAccessoryUpLoad[] newArray(int size) {
            return new InformationAccessoryUpLoad[size];
        }
    };
}
